package in.hitmedia.test.stack;

public class Node<E> {
	private Node<E> next;
	private E data;
	
	public Node(final E data)
	{
		this.data = data;
		this.next = null;
	}
	
	public Node(final E data, final Node<E> next)
	{
		this(data);
		this.next = next;
	}

	public Node<E> getNext()
	{
		return next;
	}
	
	public E getData()
	{
		return data;
	}
	
}
